home *** CD-ROM | disk | FTP | other *** search
- <%
- '+-------------------------------------------------------------------------
- '
- ' Microsoft Windows Media
- ' Copyright (C) Microsoft Corporation. All rights reserved.
- '
- ' File: Tabs.asp
- '
- ' Contents: Draws the tabs across each of the various pages
- '
- ' Dependencies: LocStrings.asp, WMSConstants.asp
- '
- '--------------------------------------------------------------------------
- Dim dwTabIndex
- Dim bMSIE
-
- bMSIE = CBool( brMSIE = Session( "BrowserType" ) )
- dwTabIndex = 1
-
- '/////////////////////////////////////////////////////////////////
- Sub DrawServerTabs( strCurrTabName )
- on error resume next
-
- Dim rgszTabNames( 4 )
- Dim TabLinks( 4 )
- Dim dwNumTabs
- Dim dwTabID
-
- rgszTabNames( 0 ) = L_MONITORTABTITLE_TEXT
- rgszTabNames( 1 ) = L_ADSTABTITLE_TEXT
- rgszTabNames( 2 ) = L_PROPERTIESTABTITLE_TEXT
- rgszTabNames( 3 ) = L_GETSTARTEDTABTITLE_TEXT
-
- TabLinks(0) = "server_status.asp"
- TabLinks(1) = "server_ads.asp"
- TabLinks(2) = "server_props.asp"
- TabLinks(3) = "server_getstarted.asp"
-
- dwTotalNumTabs = 4
- %>
- <!-- TABS -->
- <table oncontextmenu="JavaScript:event.cancelBubble=true;return false;" align="left" class="tabTable" cols="<%= dwTotalNumTabs %>" border="0" hspace="0" vspace="0" STYLE="BORDER-COLLAPSE: collapse" margin-top="0" margin-bottom="0">
- <tr align="middle"><%
- for dwTabID = 0 to dwTotalNumTabs - 1
- bTabIsActive = CBool( 0 = StrComp( rgszTabNames( dwTabID ), strCurrTabName, vbTextCompare ) )
-
- if bTabIsActive then
- %>
- <td nowrap class="tabSelected" <% if FALSE = bMSIE then %> bgcolor="white"<%end if %>><span>
- <center><%= " " & Server.HTMLEncode( rgszTabNames( dwTabID ) ) & " " %></center></span>
- </td><%
- else
- %><td nowrap class="tabNotSelected" <%if FALSE = bMSIE then %> bgcolor="<%= Server.HTMLEncode( colorTabBackground ) %>"<%end if %>>
- <center>
- <a tabIndex="<%= dwTabIndex %>" <% dwTabIndex = dwTabIndex + 1 %> href="<%= TabLinks( dwTabID ) %>?server=<%= RemoveDangerousCharacters( Request.QueryString("server") & "&ppID=" & szPubPointID ) %>">
- <span class="tabNotSelected">
- <%= " " & Server.HTMLEncode( rgszTabNames( dwTabID ) ) & " " %>
- </span></a>
- </center>
- </td><%
- end if
- next %>
- </tr>
- </table><!-- /TABS --><%
- Response.Flush
- End Sub
-
-
- '/////////////////////////////////////////////////////////////////
- Sub DrawCacheProxyTabs( strCurrTabName )
-
- Dim rgszTabNames( 1 )
- Dim TabLinks( 1 )
- Dim dwNumTabs
- Dim dwTabID
-
- rgszTabNames( 0 ) = L_GETSTARTEDTABTITLE_TEXT
-
- TabLinks(0) = "cache_getstarted.asp"
-
- dwTotalNumTabs = 1
- %>
- <!-- TABS -->
- <table align="left" class="tabTable" cols="<%= dwTotalNumTabs %>" border="1" hspace="0" vspace="0" STYLE="BORDER-COLLAPSE: collapse" margin-top="0" margin-bottom="0">
- <tr align="middle">
- <%
- for dwTabID = 0 to dwTotalNumTabs - 1
- bTabIsActive = CBool( rgszTabNames( dwTabID ) = strCurrTabName )
-
- if bTabIsActive then
- %>
- <td nowrap class="tabSelected" <% if FALSE = bMSIE then %> bgcolor="white"<%end if %>>
- <center><%= " " & Server.HTMLEncode( rgszTabNames( dwTabID ) ) & " " %></center>
- </td>
- <% else %>
- <td nowrap class="tabNotSelected" <%if FALSE = bMSIE then %> bgcolor="<%= Server.HTMLEncode( colorTabBackground ) %>"<%end if %>>
- <center>
- <a tabIndex="<%= dwTabIndex %>" <% dwTabIndex = dwTabIndex + 1 %> href="<%= TabLinks( dwTabID ) %>?server=<%= RemoveDangerousCharacters( Request.QueryString("server") & "&ppID=" & szPubPointID ) %>">
- <span class="tabNotSelected">
- <center><%= " " & Server.HTMLEncode( rgszTabNames( dwTabID ) ) & " " %></center>
- </span></a>
- </center>
- </td>
- <% end if %>
- <% next %>
- </tr>
- </table> <!-- /TABS --><%
- Response.Flush
- End Sub
-
-
- '/////////////////////////////////////////////////////////////////
- Sub DrawPubPointTabs( strCurrTabName )
-
- Dim dwTabID
- Dim rgszTabNames( 4 )
- Dim TabLinks( 4 )
-
- Dim dwMonitorTabID
- Dim dwMediaTabID
- Dim dwAdsTabID
- Dim dwPropertiesTabID
- Dim dwTotalNumTabs
-
- dwMonitorTabID = 0
- dwMediaTabID = 1
- dwAdsTabID = 2
- dwPropertiesTabID = 3
- dwTotalNumTabs = 4
-
- rgszTabNames( dwMonitorTabID ) = L_MONITORTABTITLE_TEXT
- rgszTabNames( dwMediaTabID ) = L_MEDIATABTITLE_TEXT
- rgszTabNames( dwAdsTabID ) = L_ADSTABTITLE_TEXT
- rgszTabNames( dwPropertiesTabID ) = L_PROPERTIESTABTITLE_TEXT
-
- TabLinks( dwMonitorTabID ) = "pubpoint_status.asp"
- TabLinks( dwMediaTabID ) = "pubpoint_media.asp"
- TabLinks( dwAdsTabID ) = "pubpoint_ads.asp"
- TabLinks( dwPropertiesTabID ) = "pubpoint_props.asp"
-
- szPubPointID = RemoveDangerousCharacters( Request.QueryString("ppID") )
- if( 0 = Len( szPubPointID ) ) then
- szPubPointID = g_szPubPointID
- end if
- %>
- <!-- TABS -->
- <table align="left" class="tabTable" cols="<%= dwTotalNumTabs %>" border="1" hspace="0" vspace="0" STYLE="BORDER-COLLAPSE: collapse" margin-top="0" margin-bottom="0">
- <tr align="middle">
- <%
- for dwTabID = 0 to dwTotalNumTabs - 1
- bTabIsActive = CBool( rgszTabNames( dwTabID ) = strCurrTabName )
-
- if bTabIsActive then
- %>
- <td nowrap class="tabSelected" <% if FALSE = bMSIE then %> bgcolor="white"<%end if %>>
- <center><%= " " & Server.HTMLEncode( rgszTabNames( dwTabID ) ) & " " %></center>
- </td>
- <% else %>
- <td nowrap class="tabNotSelected" <%if FALSE = bMSIE then %> bgcolor="<%= Server.HTMLEncode( colorTabBackground ) %>"<%end if %>>
- <center>
- <a tabIndex="<%= dwTabIndex %>" <% dwTabIndex = dwTabIndex + 1 %> href="<%= TabLinks( dwTabID ) %>?server=<%= RemoveDangerousCharacters( Request.QueryString("server") & "&ppID=" & szPubPointID ) %>">
- <span class="tabNotSelected">
- <%= " " & Server.HTMLEncode( rgszTabNames( dwTabID ) ) & " " %>
- </span></a>
- </center>
- </td>
- <% end if %>
- <% next %>
- </tr>
- </table> <!-- /TABS --><%
- Response.Flush
- End Sub
-
-
- '/////////////////////////////////////////////////////////////////
- Sub DrawCacheProxyPubPointTabs( strCurrTabName )
-
- Dim dwTabID
- Dim rgszTabNames( 2 )
- Dim TabLinks( 2 )
-
- Dim dwMonitorTabID
- Dim dwPropertiesTabID
- Dim dwTotalNumTabs
-
- dwMonitorTabID = 0
- dwPropertiesTabID = 1
- dwTotalNumTabs = 2
-
- rgszTabNames( dwMonitorTabID ) = L_MONITORTABTITLE_TEXT
- rgszTabNames( dwPropertiesTabID ) = L_PROPERTIESTABTITLE_TEXT
-
- TabLinks( dwMonitorTabID ) = "pubpoint_status.asp"
- TabLinks( dwPropertiesTabID ) = "pubpoint_props.asp"
-
- szPubPointID = RemoveDangerousCharacters( Request.QueryString("ppID") )
- if( 0 = Len( szPubPointID ) ) then
- szPubPointID = g_szPubPointID
- end if
- %>
- <!-- TABS -->
- <table align="left" class="tabTable" cols="<%= dwTotalNumTabs %>" border="1" hspace="0" vspace="0" STYLE="BORDER-COLLAPSE: collapse" margin-top="0" margin-bottom="0">
- <tr align="middle">
- <%
- for dwTabID = 0 to dwTotalNumTabs - 1
- bTabIsActive = CBool( rgszTabNames( dwTabID ) = strCurrTabName )
-
- if bTabIsActive then
- %>
- <td nowrap class="tabSelected" <% if FALSE = bMSIE then %> bgcolor="white"<%end if %>>
- <center><%= " " & Server.HTMLEncode( rgszTabNames( dwTabID ) ) & " " %></center>
- </td>
- <% else %>
- <td nowrap class="tabNotSelected" <%if FALSE = bMSIE then %> bgcolor="<%= Server.HTMLEncode( colorTabBackground ) %>"<%end if %>>
- <center>
- <a tabIndex="<%= dwTabIndex %>" <% dwTabIndex = dwTabIndex + 1 %> href="<%= TabLinks( dwTabID ) %>?server=<%= RemoveDangerousCharacters( Request.QueryString("server") & "&ppID=" & szPubPointID ) %>">
- <span class="tabNotSelected">
- <%= " " & Server.HTMLEncode( rgszTabNames( dwTabID ) ) & " " %>
- </span></a>
- </center>
- </td>
- <% end if %>
- <% next %>
- </tr>
- </table> <!-- /TABS --><%
- Response.Flush
- End Sub
- %>
-